package com.example.librarymanagement.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeController {

    @GetMapping("/")
    public String defaut() {
        return "defaut";
    }
    @GetMapping("/adminlogin")
    public String adminlogin() {
        return "adminlogin";
    }
    @GetMapping("/adminhome")
    public String adminhome() {
        return "adminhome";
    }
    @GetMapping("/userregister")
    public String register() {
        return "register";
    }
    @GetMapping("/userlogin")
    public String update() {
        return "userlogin";
    }
    @GetMapping("/addbook")
    public String addbook() {return "add-book";}
    @GetMapping("/editbook")
    public String editbook() {
        return "edit-book";
    }
    @GetMapping("/bookslist")
    public String bookslist() {
        return "books-list";
    }
    @GetMapping("/updateuser")
    public String updateuser() {
        return "update_user";
    }
    @GetMapping("/userhome")
    public String userhome() {
        return "user_home";
    }
    @GetMapping("/usermanagement")
    public String usermanagement() {
        return "user_management";
    }
    @GetMapping("/loanstatus")
    public String loanstatus() {
        return "loan_status";
    }
    @GetMapping("/borrowbook")
    public String borrowbook() {
        return "borrowbook";
    }
    @GetMapping("/borrowedBooks")
    public String borrowedBooks() {
        return "borrowedBooks";
    }
    @GetMapping("/userborrowrecordslist")
    public String userborrowrecordslist() {
        return "user-borrow-records-list";
    }
    @GetMapping("/borrowrank")
    public String borrowrank() {
        return "borrow-rank";
    }
}
